package com.swyc.osschat.Test.designMode.iterator.base;

/**
 * @description 抽象聚合
 * @Author: z156940l@outlook.com
 * @className Aggregate
 * @Date: 2022/6/28 8:44
 */
public interface Aggregate {
    //添加对象
    void addObject(Object object);
    //移除对象
    void removeObject(Object object);
    //获取迭代器
    Iterator getIterator();
}
